From d272840560fc32bf97f8e58995486033ed83091a Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Tue, 18 Dec 2018 21:52:14 -0600 Subject: [PATCH] Build fix for Cmake/CLion on Mac. Correct handling of frameworks. They're like libs, but not... --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cd824e6a5..c1b38655d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,7 +217,7 @@ if (UNIX AND NOT APPLE) endif() if (APPLE) - set(LIBS ${LIBS} -framework IOKit -framework CoreFoundation) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework IOKit -framework CoreFoundation") include_directories(AFTER mac/libusb) set(SOURCES ${SOURCES} mac/libusb/darwin.c -- 2.30.2